home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / WAIS / ir / Makefile < prev    next >
Encoding:
Makefile  |  1992-02-03  |  2.7 KB  |  143 lines

  1. #
  2. # This is a sample server, Z39.50 library, and a user interface stub
  3. #  The Z39.50 library was primariy written by Harry Morris and the search
  4. #  engine was primarily written by Brewster Kahle.
  5. #  -brewster 4/90
  6.  
  7. # Common customizations:
  8. #  If a namespace resolver is not used (gethostbyname),
  9. #   set RESOLVER to nothing, otherwise -lresolv
  10. #  gcc vs cc:  This library was written on a bunch of ANSI routines.
  11. #   the ones that did not exist in gcc or for non-ANSI cc are in ustubs.c
  12. # for old BSD cc or System V, see cflags below
  13.  
  14. SERVER_CMD = ../bin/waisserver    # command name for the wais server
  15. INDEX_CMD  = ../bin/waisindex     # command name for indexing files
  16. UI_LIB =     ../bin/ui.a    # file name of the ui library
  17.  
  18. RM = rm -f
  19. AR = ar 
  20. ARFLAGS = r
  21. #
  22. # Files.
  23. #
  24.  
  25. # List of source files for saber.
  26.  
  27. SOURCES =    \
  28.         cutil.c \
  29.         futil.c \
  30.         ir.c \
  31.         ircfiles.c \
  32.         irfileio.c \
  33.         irfiles.c \
  34.         irretrvl.c \
  35.         irtfiles.c \
  36.         panic.c \
  37.         sockets.c \
  38.         stoplist.c \
  39.         transprt.c \
  40.         ui.c \
  41.         ustubs.c \
  42.         wmessage.c \
  43.         wprot.c \
  44.         wutil.c \
  45.         zprot.c \
  46.         zutil.c \
  47.          irsearch.c \
  48.          ztype1.c \
  49.         docid.c
  50.  
  51. INV_SRC  =    $(SOURCES) \
  52.         sersrch.c \
  53.         irhash.c \
  54.         irinv.c        
  55.  
  56. INDEX_SRC=    irbuild.c
  57.  
  58. SERVER_SRC=    $(INV_SRC) \
  59.         server.c
  60.  
  61. # List of object files for saber and regular compilation.
  62. # Should correspond to source files.
  63.  
  64. OBJECTS =    \
  65.         cutil.o \
  66.         futil.o \
  67.         ir.o \
  68.         ircfiles.o \
  69.         irfileio.o \
  70.         irfiles.o \
  71.         irretrvl.o \
  72.         irtfiles.o \
  73.         panic.o \
  74.         sockets.o \
  75.         stoplist.o \
  76.         transprt.o \
  77.         ui.o \
  78.         ustubs.o \
  79.         wmessage.o \
  80.         wprot.o \
  81.         wutil.o \
  82.         zprot.o \
  83.         zutil.o \
  84.          irsearch.o \
  85.          ztype1.o \
  86.         docid.o
  87.  
  88. INV_OBJ  =    $(OBJECTS) \
  89.         sersrch.o \
  90.         irhash.o \
  91.         irinv.o        
  92.  
  93. INDEX_OBJ=    irbuild.o
  94.  
  95. SERVER_OBJ=    $(INV_OBJ) \
  96.         server.o \
  97.         ../bin/libftw.a
  98.  
  99. #
  100. # Compilation.
  101. #
  102.  
  103. # C Compiler.  Use either cc or gcc.
  104. #CC = gcc
  105.  
  106. # Compiler & linker flags.
  107. # Compiler debug flag.  Use -g for debugging, -O for optimization.
  108. # for antique bsd add -DBSD 
  109. # for System V add -DSYSV 
  110. # for XENIX add -M3e -Zi
  111. # -DSECURE_SERVER for waisserver to setuid to uucp after startup.
  112. CFLAGS = -g -DSECURE_SERVER -DRELEVANCE_FEEDBACK
  113.  
  114. # dealing with taking an intenet name and resolving it.  
  115. # set to -lresolv or nothing
  116. RESOLVER=    #-lresolv 
  117.  
  118. default:    $(INDEX_CMD) $(SERVER_CMD) $(UI_LIB) 
  119.  
  120. $(INDEX_CMD):    $(INV_OBJ) $(INDEX_OBJ) 
  121.         $(CC) $(CFLAGS) -o $(INDEX_CMD) $(INV_OBJ) $(INDEX_OBJ) -lm;
  122.  
  123. $(SERVER_CMD):    $(SERVER_OBJ)
  124.         $(CC) $(CFLAGS) -o $(SERVER_CMD) $(SERVER_OBJ) -lm;
  125.  
  126. $(UI_LIB):    $(INV_OBJ)
  127.         $(AR) $(ARFLAGS) $(UI_LIB) $(INV_OBJ)
  128.         ranlib $(UI_LIB)
  129.  
  130.  
  131. # Remove objects and library.
  132. clean:
  133.     $(RM) *.o
  134.     $(RM) *~
  135.     $(RM) \#*\#
  136.     $(RM) .nfs*  # NFS lossage
  137.     $(RM) *.elc
  138.     $(RM) $(SERVER_CMD)
  139.     $(RM) $(INDEX_CMD)
  140.     $(RM) SearchLog
  141.     $(RM)  core
  142.  
  143.